﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class uidata : MonoBehaviour
{
	Dictionary<int, ByteArray> mData = new Dictionary<int, ByteArray> ();
	public string	mResName;		// ui资源名称
	public List<string> mAtlas	= new List<string>();
	public void setData( int index, ByteArray stream )
	{
		if (mData.ContainsKey (index) == true)
			mData.Remove (index);

		mData.Add (index, stream);
	}

	public void removeData( int index )
	{
		if (mData.ContainsKey (index) == true)
			mData.Remove (index);
	}

	public ByteArray getData( int index )
	{
		if (mData.ContainsKey (index) == true)
			return mData [index];

		return null;
	}

	public void clearData( )
	{
		mData.Clear ();
	}
}

